package com.huitu.whht.base.core.api.rel.gws.entities;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 地下水水源地与供水行政区划（乡镇）关系表实体类,表名称: REL_GWS_TOWN <br/>
 * 日期: 2019-04-11
 * @author LiuCW
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RelGwsTown extends RelGwsTownKey {

private static final long serialVersionUID = 4L;

    /**
      * 地下水水源地代码
      */
    private String gwsCd;
    /**
      * 乡镇行政区划代码
      */
    private String townCd;
    /**
      * 时间戳
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime ts;
    /**
      * 备注
      */
    private String nt;
    /**
      * 是否启用: 0 停用 1 启用
      */
    private String isuse;
}